package demo10_6;

class OuterClass {
    //实例内部类
    class InnerClass {

    }

    //静态内部类
    static class InnerClass2 {

    }

}
interface A {
    void testA();
}
public class Test10_6 {
    public static void main(String[] args) {
        A a = new A() {
            @Override
            public void testA() {
                System.out.println("哈哈");
            }
        };//匿名内部类
        a.testA();
    }
}
